From 2c26432779f5e0e26c1c5d423673c51a3ed3bbf8 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 8 Nov 2007 10:21:47 +0000 Subject: [PATCH] x86, hvm: Fix boot of HVM guests with pass-thru devices. Cache attributes should not be propagated for Xen-heap pages. Signed-off-by: Keir Fraser --- xen/arch/x86/mm/shadow/multi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/mm/shadow/multi.c b/xen/arch/x86/mm/shadow/multi.c index 8eddd61538..1dafb13cfe 100644 --- a/xen/arch/x86/mm/shadow/multi.c +++ b/xen/arch/x86/mm/shadow/multi.c @@ -745,10 +745,11 @@ _sh_propagate(struct vcpu *v, /* * For HVM domains with direct access to MMIO areas, set the correct - * caching attributes in the shadows to match what was asked for + * caching attributes in the shadows to match what was asked for. */ if ( (level == 1) && is_hvm_domain(d) && - !list_empty(&(domain_hvm_iommu(d)->pdev_list)) ) + !list_empty(&(domain_hvm_iommu(d)->pdev_list)) && + !is_xen_heap_mfn(mfn_x(target_mfn)) ) { unsigned int type; if ( hvm_get_mem_pinned_cacheattr(d, gfn_x(target_gfn), &type) ) -- 2.30.2